#include"preCmpH.h"
#include"UIManagerControlInterface.h"
#include"UIManager.h"

BEGIN_NAMESPACE(ui_manager)
BEGIN_NAMESPACE(ui_controls)

class UIControlContainer;


UIManagerControlInterface::UIManagerControlInterface()
	: manager_(null)
{}
ui_graphics::UIRenderer& UIManagerControlInterface::getUIRenderer()
{
	return manager_->getUIRenderer();
}
ui_fonts::UIFontManager& UIManagerControlInterface::getUIFontManager()
{
	return manager_->getUIFontManager();
}
UIControlContainer& UIManagerControlInterface::getRoot()
{
	return manager_->getRoot();
}

void UIManagerControlInterface::LoadManager( UIManager& manager )
{
	manager_ = &manager;
}

void UIManagerControlInterface::UnloadManager()
{
	manager_ = null;
}

END_NAMESPACE
END_NAMESPACE